#include "StdAfx.h"
#include "EngineBridge.h"
#include <Engine/GlobalEnv.h>
#include <Engine/DllMain.h>

namespace Controllers
{
	void EngineBridge::InitializeNativeEngine()
	{		
		fastbird::IEngine* pEngine = ::CreateEngine();
		pEngine->InitEngine(fastbird::IEngine::D3D11);
	}

	void EngineBridge::FinalizeNativeEngine()
	{
		::DestroyEngine();
		FreeLibrary(_nativeEngineDllHandle);
	}

	int EngineBridge::InitSwapChain(HANDLE hwnd, int width, int height)
	{
		//return gEnv->pEngine->InitSwapChain((HWND)hwnd, width, height);
		return 0;
	}

}

